package com.ostraffel.recallvocabularybackend.DTO;

public class UserConfigDetailed {
    String userId; // 用户id
    String userName; // 用户名
    String userPassword; // 用户密码
    String userEmail; // 用户邮箱

    int newWordNumber; // 新背单词数量
    int recallWordNumber; // 复习单词数量

    public String getUserId() {
        return userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserPassword() {
        return userPassword;
    }
    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }
    public String getUserEmail() {
        return userEmail;
    }
    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }
    public int getNewWordNumber() {
        return newWordNumber;
    }
    public void setNewWordNumber(int newWordNumber) {
        this.newWordNumber = newWordNumber;
    }
    public int getRecallWordNumber() {
        return recallWordNumber;
    }
    public void setRecallWordNumber(int recallWordNumber) {
        this.recallWordNumber = recallWordNumber;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("UserConfig{");
        sb.append("userId=").append(userId);
        sb.append(", userName=").append(userName);
        sb.append(", userPassword=").append(userPassword);
        sb.append(", userEmail=").append(userEmail);
        sb.append(", newWordNumber=").append(newWordNumber);
        sb.append(", recallWordNumber=").append(recallWordNumber);
        sb.append('}');
        return sb.toString();
    }

    // 测试代码
    public void UserConfigDetailed_Test(){
        this.userId = "1";
        this.userName = "testName";
        this.userPassword = "testPassword";
        this.userEmail = "test@test.com";
        this.newWordNumber = 10;
        this.recallWordNumber = 20;
        System.out.println("测试UserConfigDetailed创建成功");
    }
}
